from xml.dom.minidom import Text


def text2xml(content):
    t = Text()
    t.data = content
    return t.toxml()